package com.java.yz.day15.HungrymanDemo;

public class HungryDemo {
    public static void main(String[] args) {
        Student s1 = Student.getStudent();
        Student s2 = Student.getStudent();
        System.out.println(s1==s2);

        //无论创建多少个，都是一个学生对象
        //无论你饿不饿，吃都准备好了
    }
}
